package com.hzsd.zengbanyi.biaodan_text.MyAdapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class FragmentAdapterAnalysis extends FragmentPagerAdapter{
	private List<Fragment> fragments;
	private String[] title;

	public FragmentAdapterAnalysis(FragmentManager fm,List<Fragment> fragments,String[] title) {
		super(fm);
		this.fragments = fragments;
		this.title = title;
	}

	@Override
	public Fragment getItem(int position) {
		return fragments.get(position);
	}
	
	@Override
	public CharSequence getPageTitle(int position) {
		return title[position];
	}

	@Override
	public int getCount() {
		return fragments.size();
	}

}
